// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
import VueAxios from 'vue-axios'
import store from './store'
import './permission' // 权限
import './icons' // icon
import './styles/index.less'
// base library
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.less'
import Viser from 'viser-vue'

import {
  Input, 
  Button, 
  Select, 
  Card, 
  Form, 
  Row, 
  Col, 
  Modal, 
  Table, 
  notification,
  List
} from 'ant-design-vue'

Vue.use(Antd)
Vue.use(Viser)
Vue.use(Input)
Vue.use(Button)
Vue.use(Select)
Vue.use(Card)
Vue.use(Form)
Vue.use(Row)
Vue.use(Col)
Vue.use(Modal)
Vue.use(Table)
Vue.use(notification)
Vue.use(List)

Vue.config.productionTip = false

Vue.use(ElementUI, {
  size: 'medium',
  menuType: 'text'
})


Vue.use(VueAxios,axios);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
